package cn.yunhe.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * by郭瀚钰
 * 新闻
 */
public class News implements Serializable {
    private int enid;//新闻ID
    private String entitle;//新闻标题
    private String encontext;//新闻内容
    //@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private String encreatetime;//新闻发布时间
    private int enflag;//0表示促销信息,1表示公告信息
    private String pic;//图片名
    private int referproduct;//关联商品
    private int parentClass;//父分类
    private int childClass;//子分类

    public News() {
    }

    public News(int enid, String entitle, String encontext, String encreatetime, int enflag, String pic, int referproduct, int parentClass, int childClass) {
        this.enid = enid;
        this.entitle = entitle;
        this.encontext = encontext;
        this.encreatetime = encreatetime;
        this.enflag = enflag;
        this.pic = pic;
        this.referproduct = referproduct;
        this.parentClass = parentClass;
        this.childClass = childClass;
    }

    public News(String entitle, String encontext, String encreatetime, int enflag, String pic, int referproduct, int parentClass, int childClass) {
        this.entitle = entitle;
        this.encontext = encontext;
        this.encreatetime = encreatetime;
        this.enflag = enflag;
        this.pic = pic;
        this.referproduct = referproduct;
        this.parentClass = parentClass;
        this.childClass = childClass;
    }

    public News(int enid, String entitle, String encontext, String encreatetime, int enflag, String pic) {
        this.enid = enid;
        this.entitle = entitle;
        this.encontext = encontext;
        this.encreatetime = encreatetime;
        this.enflag = enflag;
        this.pic = pic;
    }

    public News(int enid, String entitle, String encontext, String encreatetime, int enflag, String pic, int referproduct) {
        this.enid = enid;
        this.entitle = entitle;
        this.encontext = encontext;
        this.encreatetime = encreatetime;
        this.enflag = enflag;
        this.pic = pic;
        this.referproduct = referproduct;
    }

    public int getParentClass() {
        return parentClass;
    }

    public void setParentClass(int parentClass) {
        this.parentClass = parentClass;
    }

    public int getChildClass() {
        return childClass;
    }

    public void setChildClass(int childClass) {
        this.childClass = childClass;
    }

    public News(String entitle, String encontext, String encreatetime, int enflag, String pic) {
        this.entitle = entitle;
        this.encontext = encontext;
        this.encreatetime = encreatetime;
        this.enflag = enflag;
        this.pic = pic;
    }

    public int getEnid() {
        return enid;
    }

    public void setEnid(int enid) {
        this.enid = enid;
    }

    public String getEntitle() {
        return entitle;
    }

    public void setEntitle(String entitle) {
        this.entitle = entitle;
    }

    public String getEncontext() {
        return encontext;
    }

    public void setEncontext(String encontext) {
        this.encontext = encontext;
    }

    public String getEncreatetime() {
        return encreatetime;
    }

    public void setEncreatetime(String encreatetime) {
        this.encreatetime = encreatetime;
    }

    public int getEnflag() {
        return enflag;
    }

    public int getReferproduct() {
        return referproduct;
    }

    public void setReferproduct(int referproduct) {
        this.referproduct = referproduct;
    }

    public void setEnflag(int enflag) {
        this.enflag = enflag;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }
}
